package com.example.makerspace.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.makerspace.mapper.MybatisIntegerHandler;
import com.example.makerspace.mapper.MybatisListHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "t_expert_info", autoResultMap = true)
public class ExpertInfoDO extends  BaseDO{
    private  String name;
    private  int sex;
    private  String identityCard;
    private  String phone;
    private  String email;
    private  String workplace;
    private  String department;
    @TableField(typeHandler = MybatisListHandler.class)
    @Field(name="professionalism", type = FieldType.Text, analyzer="ik_max_word")
    private List<String> professionalism;
    private  String technicalTitle;
    private  String experience;
    private  String expertType;
    private  String expertTypeDeail;
    private  String expertCategory;
    private  String avatar;
    @TableField(typeHandler = MybatisIntegerHandler.class)
    @Field(name="task_id", type = FieldType.Text, analyzer="ik_max_word")
    private  List<Integer> taskId;
    private  Integer isShow;
    private  String bankCardNumber;
    private  String  bank;
    private  String expertNumber;
}
